// 品牌制造商直供
<template>
  <div class="brand">
    <h3>品牌制造商直供</h3>
    <ul>
      <li v-for="(item, index) in brandList" :key="index.id">
        <img :src="item.pic_url" alt="" />
        <p>{{ item.name }}</p>
        <span>{{ item.floor_price | formatPrice }}</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "productList",
  props: ["brandList"],
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style lang='less' scoped>
.brand {
  h3 {
    margin: 15px;
    text-align: center;
  }
  ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    li {
      width: 49%;
      position: relative;
      img {
        width: 100%;
        display: block;
      }
      p {
        position: absolute;
        left: 20px;
        top: 15px;
        font-size: 10px;
      }
      span {
        position: absolute;
        left: 20px;
        top: 45px;
        font-size: 10px;
        color: #8b0000;
      }
    }
  }
}
</style>
